package br.edu.ufcg.lsd.wbis.control.equipment;

import java.sql.Date;

import javax.persistence.Entity;

/**
 * 
 * @author Paulo Ricardo
 *
 */
@Entity
public class VideoCard extends Component {

	private int memory;
	private int frequency;
	private String bus;
	
	@SuppressWarnings("unused")
	private VideoCard() {}

	/**
	 * 
	 * @param inventoryCode
	 * @param brand
	 * @param serialCode
	 * @param aquisitionDate
	 * @param model
	 * @param localization
	 * @param receipt
	 * @param reserve
	 * @param available
	 * @param coupled
	 * @param memory
	 * @param frequency
	 * @param bus
	 */
	public VideoCard(String inventoryCode, String brand, String serialCode,
			Date aquisitionDate, String model, String localization,
			byte[] receipt,  Computer computer, boolean available,
			int memory, int frequency, String bus) {
		super(inventoryCode, brand, serialCode, aquisitionDate, model,
				localization, receipt, computer, false, available, VideoCard.class);
		this.memory = memory;
		this.frequency = frequency;
		this.bus = bus;
	}

	/**
	 * 
	 * @return
	 */
	public int getMemory() {
		return memory;
	}

	/**
	 * 
	 * @return
	 */
	public int getFrequency() {
		return frequency;
	}

	/**
	 * 
	 * @return
	 */
	public String getBus() {
		return bus;
	}

	/**
	 * 
	 * @param memory
	 */
	protected void setMemory(int memory) {
		this.memory = memory;
	}

	/**
	 * 
	 * @param frequency
	 */
	protected void setFrequency(int frequency) {
		this.frequency = frequency;
	}

	/**
	 * 
	 * @param bus
	 */
	protected void setBus(String bus) {
		this.bus = bus;
	}
	
}
